package com.solution.admin.order.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.order.entity.OrderInvoiceEntity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 订单发票信息DAO接口
 * @author lilp
 * @date 2017-09-18 19:24:52
 */
public interface OrderInvoiceDao extends BaseDao<OrderInvoiceEntity> {
	
	/**
	 * 获取客户最新的开票信息
	 * @param customerId 客户Id
	 * @return
	 * @author: solin
	 * @date: 2018年1月25日 下午9:33:32
	 */
	public OrderInvoiceEntity getLatestByCustomerId(Long customerId);
	
	/**
	 * 保存订单发票信息
	 * @param orderInvoiceEntity
	 * @return
	 * @author lilp
	 * @date 2017-09-18 19:24:52
	 */
	public long saveOrderInvoice(OrderInvoiceEntity orderInvoiceEntity);

	/**
	 * 分页查询订单发票信息信息
	 * @param pageParam 分页对象
	 * @param orderInvoice 分页参数
	 * @return PageBean 分页参数及数据
	 * @author lilp
	 * @date 2017-09-18 19:24:52
	 */
	public PageBean listOrderInvoicePage(PageParam pageParam, Map<String, Object> param);

	/**
	 * 更新订单发票信息
	 * @param orderInvoiceEntity
	 * @return
	 * @author lilp
	 * @date 2017-09-18 19:24:52
	 */
	public int updateOrderInvoice(OrderInvoiceEntity orderInvoiceEntity);


	/**
	 * 删除订单发票信息角色
	 * @param id
	 * @return
	 * @author lilp
	 * @date 2017-09-18 19:24:52
	 */
	public int deleteOrderInvoiceById(Long id);
	
	/**
	 * 根据订单发票信息类型获取订单发票信息
	 * @param param
	 * @return
	 * @author lilp
	 * @date 2017-09-18 19:24:52
	 */
	public List<OrderInvoiceEntity> listOrderInvoice( Map<String, Object> param);
}
